package com.example.sangong.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.example.sangong.config.exportconvert.LocalDateStringConverter;
import lombok.Data;

import java.time.LocalDate;

@Data
public class PersonExport {
    @ExcelProperty("用户名称")
    @ColumnWidth(20)
    private String name;
    @ExcelProperty("用户年龄")
    @ColumnWidth(20)
    private Integer age;
    @ExcelProperty(value = "出身日期" ,converter = LocalDateStringConverter.class)
    @ColumnWidth(20)
    private LocalDate birthDay;
    @ExcelProperty("性别")
    @ColumnWidth(20)
    private String gender;
}
